package com.xuecheng.learning.feignclient;

import com.xuecheng.base.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="media-api",path="/media",contextId="mediaFile",
fallbackFactory=MediaFileClientFactory.class)
public interface MediaFileClient {
    @GetMapping("/preview/{id}")
    RestResponse<String> preview(@PathVariable("id") Long id);
}
